/* CQFS Engine
 * Copyright (c) 2006 Blazing Games Inc. All Rights Reserved
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; 
 * version 2.1 of the License.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package com.blazinggames.cqfs.data;

/**
 * Whenever the ResourceInfo for a resource changes, this message is sent to 
 * all the classes that care about such changes.
 * 
 * @author Billy D. Spelchan
 * @version 1.0
 */
public interface ResourceStateListener
{
// *********************
// ***** CONSTANTS *****
// *********************
	
	public static final int TYPE_STATE = 0;
	public static final int TYPE_PRIORITY = 1;
	public static final int TYPE_WEIGHT = 2;
	
// *******************
// ***** METHODS *****
// *******************
	
	/**
	 * Called by ResourceInfo to let listener know something has changed.
	 * 
	 * @param resource the ResourceInfo instance that is reporting change.
	 * @param type type of change that occurred
	 */
	public void resourceStateChanged(ResourceInfo resource, int type);
}
